package org.mikhaylov.cp.web.command.redirect;

import javax.servlet.http.HttpServletRequest;

import org.mikhaylov.cp.service.command.ServiceCommandContainer;
import org.mikhaylov.cp.web.command.WebCommand;
import org.mikhaylov.cp.web.storage.Path;

public class ViewProfileWebCommand extends WebCommand {

	private static final long serialVersionUID = -5768853504096444512L;

	@Override
	protected boolean checkParams(HttpServletRequest request) {
		return true;
	}

	@Override
	protected boolean extractParams(HttpServletRequest request) {
		return true;
	}

	@Override
	protected void process(HttpServletRequest request) {
		forward = Path.PAGE_PROFILE;
		ServiceCommandContainer.get("getCities").execute(request, null);
	}

}
